<?php
/**
 * 存储本系统输出的所有错误码
 */

return [

    /*
    |--------------------------------------------------------------------------
    | 通用错误码
    |--------------------------------------------------------------------------
    */

    '200' => [
        'reason' => 'success'
    ],
    /*
    |--------------------------------------------------------------------------
    | 订单模块，以10开头
    |--------------------------------------------------------------------------
    */

    '1000' => [
        'reason' => '下单失败'
    ],
    '1001' => [
        'reason' => '用户名错误'
    ],
    '1002' => [
        'reason' => '无效的订单列表'
    ],
    '1003' => [
        'reason' => '网络繁忙，请稍后重试'
    ],
    '1004' => [
        'reason' => '数据源错误，非标准数据格式'
    ],
    '1005' => [
        'reason' => '下单过于频繁，请稍后重试'
    ],
    '1006' => [
        'reason' => '参数错误'//具体参数错误信息请自定义
    ],
    '1007' => [
        'reason' => '获取报告名称列表失败'
    ],
    '1008' => [
        'reason' => '订单删除失败'
    ],
    '1009' => [
        'reason' => '评论失败'
    ],
    '1010' => [
        'reason' => '订单不存在或已评论'
    ],


    /*
    |--------------------------------------------------------------------------
    | 报告模块，以11开头
    |--------------------------------------------------------------------------
    */

    '1100' => [
        'reason' => '网络繁忙，请稍后重试'
    ],
    '1101' => [
        'reason' => '订单号错误'
    ],
    '1102' => [
        'reason' => 'vin信息查询失败'
    ],
    '1103' => [
        'reason' => '数据源错误，非标准数据格式'
    ],
    '1104' => [
        'reason' => '参数错误'
    ],

    '1105' => [
        'reason' => '退款失败'
    ],
    '1106' => [
        'reason' => '订单异常请联系客服'
    ],
    /*
    |--------------------------------------------------------------------------
    | 用户模块，以12开头
    |--------------------------------------------------------------------------
    */

    '1200' => [
        'reason' => '用户未登录或登录超时'
    ],
    '1201' => [
        'reason' => '用户名或密码错误'
    ],
    '1202' => [
        'reason' => '账号被锁定，请联系管理员'
    ],
    '1203' => [
        'reason' => '手机号为空或格式错误'
    ],
    '1204' => [
        'reason' => '密码为空或小于6个字符'
    ],
    '1205' => [
        'reason' => '该手机号未注册'
    ],
    '1206' => [
        'reason' => '该手机号已注册'
    ],
    '1207' => [
        'reason' => '验证码错误'
    ],
    '1209' => [
        'reason' => '登录错误次数过多，禁止登录'
    ],
    '1213' => [
        'reason' => '重复密码和新密码不一致'
    ],

    /*
    |--------------------------------------------------------------------------
    | 用户模块验证码，以121开头
    |--------------------------------------------------------------------------
    */

    '1210' => [
        'reason' => '验证码参数错误'
    ],
    '1211' => [
        'reason' => '验证码发送超限'
    ],
    '1212' => [
        'reason' => '验证码错误或过期'
    ],

    /*
    |--------------------------------------------------------------------------
    | 支付，以14开头
    |--------------------------------------------------------------------------
    */

    '1400' => [
        'reason' => '用户余额不足'
    ],
    '1401' => [
        'reason' => '扣款失败'
    ],
    '1403' => [
        'reason' => '付款方式不正确'
    ],
    '1404' => [
        'reason' => '付款订单错误'
    ],
    '1405' => [
        'reason' => '支付时候错误'
    ],
    '1406' => [
        'reason' => '更新付款记录失败'
    ],
    '1407' => [
        'reason' => '获取支付地址失败'
    ],
    '1408' => [
        'reason' => '解析回调失败',
    ],
    '1409' => [
        'reason' => '回调签名错误',
    ],
    '1410' => [
        'reason' => '无此订单',
    ],
    '1411' => [
        'reason' => '重复回调',
    ],
    '1412' => [
        'reason' => '订单金额不一致',
    ],

    /*
    |--------------------------------------------------------------------------
    | 异常模块，以 40 开头
    |--------------------------------------------------------------------------
    */
    '4000' => [
        'reason' => '错误请求'
    ],
    '4001' => [
        'reason' => '未授权'
    ],
    '4002' => [
        'reason' => '登录失败'
    ],
    '4003' => [
        'reason' => '服务器拒绝访问'
    ],
    '4004' => [
        'reason' => 'Resource not found.'
    ],
    '4005' => [
        'reason' => '旧密码输入有误'
    ],
    '4006' => [
        'reason' => '文件上传失败，请检测权限'
    ],
    '4007' => [
        'reason' => '任务已处理或者文件未上传成功，请检查'
    ],
    '4008' => [
        'reason' => '不允许的上传类型，请检查'
    ],
    '4009' => [
        'reason' => '查询失败'
    ],

    /*
    |--------------------------------------------------------------------------
    | 异常模块，以 50 开头
    |--------------------------------------------------------------------------
    */
    '5000' => [
        'reason' => '系统错误'
    ],
    '5001' => [
        'reason' => 'Token 异常黑名单'
    ],
    '5002' => [
        'reason' => '未生成全文索引的错误'
    ],


    /*
    |--------------------------------------------------------------------------
    | 走马接口错误码，以 600 开头
    |--------------------------------------------------------------------------
    */
    '6000' => [
        'reason' => '接口不存在'
    ],
    '6001' => [
        'reason' => '请求第三方接口超时'
    ],
    '6002' => [
        'reason' => '接口频率过高'
    ],
    '6003' => [
        'reason' => '第三方接口请求通用异常'
    ],
    '6004' => [
        'reason' => '第三方接口未知异常'
    ],
    '6005' => [
        'reason' => '请求参数异常'
    ],
    '6006' => [
        'reason' => '第三方数据异常'
    ],
    '6007' => [
        'reason' => '异步回调参数异常'
    ],
    '6008' => [
        'reason' => 'token不存在'
    ],
    '6009' => [
        'reason' => '无权限访问'
    ],
    '6010' => [
        'reason' => 'token_key过期'
    ],
    '6011' => [
        'reason' => '短信发送频发,请一分钟后再试'
    ],
    '6012' => [
        'reason' => '验证码过期'
    ],
    '6013'=>[
        'reason' => '暂无数据'
    ],
    '6014'=>[
        'reason' => '更新失败'
    ],
    '6014'=>[
        'reason' => '插入数据失败'
    ],
    '6015'=>[
        'reason' =>  '代理账户已存在'
    ],
    '6016'=>[
         'reason' =>'代理数据不存在或已审核'
    ],
    '6017'=>[
        'reason' =>'视频上传失败'
    ],
    '6018'=>[
        'reason' =>'审核失败'
    ],
    '6019'=>[
        'reason' =>'手机号已占用'
    ],

    /*
    |--------------------------------------------------------------------------
    | 走马系统错误码，以 700 开头
    |--------------------------------------------------------------------------
    */
    '7000' => [
        'reason' => 'Pheanstalk后台Srver异常,请启动后台服务'
    ],
    '7001' => [
        'reason' => 'PheanstalkWroker连接异常'
    ],
    '7002' => [
        'reason' => 'Pheanstalk压队错误'
    ],


    /*
    |--------------------------------------------------------------------------
    | 走马日志码，以 800 开头 不对外只对内 不对外输出
    |--------------------------------------------------------------------------
    */
    '8000' => [
        'reason' => '超过3次返队工作'
    ],
    '8001' => [
        'reason' => '系统报错,内部错误,请查看日志'
    ],

    /*
    |--------------------------------------------------------------------------
    | 走马官网表单，以 900
    |--------------------------------------------------------------------------
    */


    '9000'=>[
         'reason'=>'缺少参数'
    ],
    '9001'=>[
         'reason' =>'请输入正确的手机号'
    ],
    '9002'=>[
        'reason'=>'插入数据失败'
    ],
    '9003'=>[
        'reason'=>'参数username，长度4-60个字符'
    ],
    '9004'=>[
        'reason'=>'参数不合法'
    ],
    '9005'=>[
        'reason'=>'失败'
    ],


    /*
    |--------------------------------------------------------------------------
    | 走马设备错误码，以 1000
    |--------------------------------------------------------------------------
    */

    '10001'=>[
        'reason'=>'启动失败'
    ],


    /*
|--------------------------------------------------------------------------
| 数据库操作错误码，以 1100
|--------------------------------------------------------------------------
*/

    '11001'=>[
        'reason'=>'删除失败'
    ],
    '11002'=>[
        'reason'=>'更新失败'
    ],
    '11003'=>[
        'reason'=>'插入失败'
    ],
    '11004'=>[
        'reason'=>'未知数据库错误'
    ],
    '11005'=>[
        'reason'=>'查询失败'
    ],
    '11006'=>[
        'reason'=>'请先删除子级'
    ],
    '11007'=>[
        'reason'=>'数据不存在'
    ]
];
